#include "ActivateStep.h"

ActivateStep::ActivateStep(): activatableInterface(0), activatableObject(0)
{
}

ActivateStep::ActivateStep(const ActivateStep& rhs): activatableInterface(rhs.activatableInterface), activatableObject(rhs.activatableObject)
{
}

ActivateStep::~ActivateStep()
{
}

void ActivateStep::Execute()
{
	if (activatableInterface && activatableObject)
	{
		activatableInterface->Activate();
	}
}

void ActivateStep::SetObject(GameObject* object, Activatable* activatable)
{
	activatableInterface = activatable;
	activatableObject = object;
}


ActivateStep* ActivateStep::Clone() const
{
	return new ActivateStep(*this);
}
